#pragma once

#include "Headers.h"

namespace CinePerfil 
{
	using namespace System;
	using namespace System::ComponentModel;
	using namespace System::Collections;
	using namespace System::Windows::Forms;
	using namespace System::Data;
	using namespace System::Drawing;

	public ref class Main_Menu : public System::Windows::Forms::Form
	{
	public:
		Main_Menu(Account* acc,vector<Account> *accs, DataBase *d)
		{
			account = acc;
			accounts = accs;
			database = d;
			InitializeComponent();
		}

	protected:
		~Main_Menu()
		{
			if (components)
			{
				delete components;
			}
		}
	private: Account* account;
	private: vector<Account> *accounts;
	private: DataBase *database;
	private: System::Windows::Forms::Button^ MM_accountManagementButton;
	private: System::Windows::Forms::Button^  MM_See_Last_Releases;

	private: System::Windows::Forms::Button^  MM_searchButton;

	private: System::ComponentModel::Container ^components;

#pragma region Windows Form Designer generated code

		void InitializeComponent(void)
		{
			System::ComponentModel::ComponentResourceManager^  resources = (gcnew System::ComponentModel::ComponentResourceManager(Main_Menu::typeid));
			this->MM_accountManagementButton = (gcnew System::Windows::Forms::Button());
			this->MM_See_Last_Releases = (gcnew System::Windows::Forms::Button());
			this->MM_searchButton = (gcnew System::Windows::Forms::Button());
			this->SuspendLayout();
			// 
			// MM_accountManagementButton
			// 
			this->MM_accountManagementButton->Cursor = System::Windows::Forms::Cursors::Hand;
			this->MM_accountManagementButton->Font = (gcnew System::Drawing::Font(L"Comic Sans MS", 11.25F, System::Drawing::FontStyle::Regular, 
				System::Drawing::GraphicsUnit::Point, static_cast<System::Byte>(0)));
			this->MM_accountManagementButton->Location = System::Drawing::Point(91, 46);
			this->MM_accountManagementButton->Name = L"MM_accountManagementButton";
			this->MM_accountManagementButton->Size = System::Drawing::Size(238, 68);
			this->MM_accountManagementButton->TabIndex = 0;
			this->MM_accountManagementButton->Text = L"Account Management";
			this->MM_accountManagementButton->UseVisualStyleBackColor = true;
			this->MM_accountManagementButton->Click += gcnew System::EventHandler(this, &Main_Menu::MM_accountManagementButton_Click);
			// 
			// MM_See_Last_Releases
			// 
			this->MM_See_Last_Releases->Cursor = System::Windows::Forms::Cursors::Hand;
			this->MM_See_Last_Releases->Font = (gcnew System::Drawing::Font(L"Comic Sans MS", 11.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, 
				static_cast<System::Byte>(0)));
			this->MM_See_Last_Releases->Location = System::Drawing::Point(91, 138);
			this->MM_See_Last_Releases->Name = L"MM_See_Last_Releases";
			this->MM_See_Last_Releases->Size = System::Drawing::Size(238, 68);
			this->MM_See_Last_Releases->TabIndex = 1;
			this->MM_See_Last_Releases->Text = L"See Last Releases";
			this->MM_See_Last_Releases->UseVisualStyleBackColor = true;
			this->MM_See_Last_Releases->Click += gcnew System::EventHandler(this, &Main_Menu::MM_See_Last_ReleasesButton_Click);
			// 
			// MM_searchButton
			// 
			this->MM_searchButton->Cursor = System::Windows::Forms::Cursors::Hand;
			this->MM_searchButton->Font = (gcnew System::Drawing::Font(L"Comic Sans MS", 11.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, 
				static_cast<System::Byte>(0)));
			this->MM_searchButton->Location = System::Drawing::Point(91, 229);
			this->MM_searchButton->Name = L"MM_searchButton";
			this->MM_searchButton->Size = System::Drawing::Size(238, 68);
			this->MM_searchButton->TabIndex = 2;
			this->MM_searchButton->Text = L"Search";
			this->MM_searchButton->UseVisualStyleBackColor = true;
			this->MM_searchButton->Click += gcnew System::EventHandler(this, &Main_Menu::MM_searchButton_Click);
			// 
			// Main_Menu
			// 
			this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
			this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
			this->BackgroundImage = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"$this.BackgroundImage")));
			this->ClientSize = System::Drawing::Size(634, 337);
			this->Controls->Add(this->MM_searchButton);
			this->Controls->Add(this->MM_See_Last_Releases);
			this->Controls->Add(this->MM_accountManagementButton);
			this->Icon = (cli::safe_cast<System::Drawing::Icon^  >(resources->GetObject(L"$this.Icon")));
			this->MaximizeBox = false;
			this->MaximumSize = System::Drawing::Size(650, 375);
			this->MinimizeBox = false;
			this->MinimumSize = System::Drawing::Size(650, 375);
			this->Name = L"Main_Menu";
			this->SizeGripStyle = System::Windows::Forms::SizeGripStyle::Hide;
			this->StartPosition = System::Windows::Forms::FormStartPosition::CenterParent;
			this->Text = L"CinePerfil - Main Menu";
			this->FormClosed += gcnew System::Windows::Forms::FormClosedEventHandler(this, &Main_Menu::MM_onClosed);
			this->ResumeLayout(false);

		}
#pragma endregion
	private:
		System::Void save_accounts_file();
		System::Void MM_accountManagementButton_Click(System::Object^  sender, System::EventArgs^  e);
		System::Void MM_onClosed(System::Object^  sender, System::Windows::Forms::FormClosedEventArgs^  e);
		System::Void MM_searchButton_Click(System::Object^  sender, System::EventArgs^  e);
		System::Void Main_Menu::MM_See_Last_ReleasesButton_Click(System::Object^  sender, System::EventArgs^  e);
	};
}
